package com.itheima.dubbo.impl;


import com.itheima.dubbo.UserFace;
import org.apache.dubbo.config.annotation.DubboService;

//@DubboService(timeout = 3000)   //服务注册注解
@DubboService(timeout = 3000)
public class UserFaceImpl implements UserFace {
    /**用户
     *
     * @param username
     * @return
     */
    @Override
    public String hello(String username) {

        System.out.println("服务被调用");

        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return "hello Dubbo username = "+ username;
    }
}
